class_name Cast

class CastStateC:
	const component_name := "CastStateC"
	var _notify: Notify  #set from mutil
	var _id: int  #entity id

	var skill
	var targets: Array
	var action_target setget _set_action_target

	func _set_action_target(value):
		action_target = value
		if _notify:
			_notify.modify_event(_id, "action_target")


class BeCastStateC:
	const component_name := "BeCastStateC"

	var _notify: Notify  #set from mutil
	var _id: int  #entity id

	var skill
	var fighter: int
	var action: String setget _set_action

	func _set_action(value):
		action = value
		if _notify:
			_notify.modify_event(_id, "action")
